home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 1 / Gold Medal Software Volume 1 (Gold Medal) (1994).iso / comms / jvfax60.arj / INTERF.DOC < prev    next >
Text File  |  1993-10-01  |  24KB  |  632 lines

  1.  
  2.  
  3.        List of demodulator interfacing modes for JVFAX 6.0:
  4.        ====================================================
  5.  
  6.  
  7.        A) asynchroneous data acquisition
  8.        =================================
  9.  
  10.        Serial port:
  11.        ============
  12.  
  13.        This is the standard method for data acquisition in JVFAX.
  14.        Because nearly every PC has a built in serial interface I've chosen
  15.        this to be to be the standard.
  16.        In order to keep the demodulator as simple as possible, not the
  17.        serial data input line RxD is used for data acquisition, but
  18.        instead the four incoming handshake lines (DCD,RI,CTS and DSR) are
  19.        used.
  20.        These four input lines look to the program like a 4 bit parallel port.
  21.        In order to expand tthe data input capability via these 4 lines to
  22.        8 bit, a multiplexing technique is used by the programme.
  23.        The program fist reads in the 4 most significant data bits with the
  24.        RTS line set to high.
  25.        Then, the RTS line is toggled to the low state and after a (very)
  26.        short delay the lower 4 bits are read.
  27.        If your interface delivers less than 8 data bits, these must be left
  28.        (MSB) aligned within the 8 bit word.
  29.        When using this interface method you must enter the >base< address
  30.        of your serial port in the address field.
  31.        Standard port base addresses for serial ports are 03F8h (COM1),
  32.        02F8h (COM2), 03E8h (COM3) and 02E8h (COM4).
  33.        No interrupt from the serial port in used, so the IRQ-field in the
  34.        configuration screen is meaningless. The data rate field is as well
  35.        meaningless, unless you're using a demodulator that can be remotely
  36.        controlled by JVFAX.
  37.        In such cases, control bytes are sent to the interface via the TXD
  38.        line with the baud rate specified in the baud rate field. (8N1)
  39.        Some more 'intelligent' interfaces such as the "EASYFAX" can interpret
  40.        these control bytes and be set to the appropriate deviation, etc.
  41.  
  42.        You should set the "bits" field to the number of significant bits
  43.        that your interface can actually deliver.
  44.  
  45.        To receive SSTV, your interface must either deliver a SSTV-sync pulse
  46.        information in the two least significant bits of the input data byte
  47.        (active low) or it must be set to 800 Hz deviation.
  48.        In the first case, the LSB-SSTV-sync entry in the configuration menu
  49.        must be set to "yes", else to no. Two bits of data are used for
  50.        SSTV sync identification to keep the program open for future
  51.        extensions, especially VIS-code (=vertical interval signalling)
  52.        interpretation.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.        
  60.  
  61.  
  62.        If you're planning to design a new demodulator that would detect
  63.        the SSTV sync pulses individually, it should deliver the following
  64.        bit patterns in bit 0 and 1:
  65.  
  66.           Bit 1 0     identifies:
  67.           ========================
  68.               H L     1050-1100 Hz
  69.               L L     1150-1250 Hz
  70.               L H     1250-1350 Hz
  71.  
  72.        At the moment however, it would be sufficient to set both bits to low
  73.        whenever a 1200 Hz sync pulse (+/- bandwidth) is present.
  74.        When LSB-SSTV sync is set to no, the program assumes that your
  75.        demodulator is set to 800 Hz deviation and will try to identify the
  76.        sync pulses itself.
  77.  
  78.  
  79.  
  80.        Serial port/ser
  81.        ===============
  82.  
  83.        Works exactly like the above method with the difference that data is
  84.        read in serially via the RXD-line of the serial port.
  85.        In this case, the baud rate field must be set to the correct baud
  86.        rate of your interface. The interface must deliver data in the 8N1
  87.        format, and its baud rate should be set preferably to 57600 in order
  88.        to achieve a good picture resolution.
  89.  
  90.  
  91.  
  92.        Comparator:
  93.        ===========
  94.  
  95.        This is by far the easiest way of getting a FAX-signal into the
  96.        computer.
  97.        Audio frequency from the receiver is shaped to a rectangular waveform
  98.        by means of a comparator and fed directly to one handshake line (DSR)
  99.        of a serial port.
  100.        Because the computer itself has to do all the signal decoding, this
  101.        is a very timing sensitive method that will fail on slow computers.
  102.        Even more, this method in some cases conflicts with some memory
  103.        managers such as EMM386. (But most interestingly not on every machine)
  104.        Results obtained with such a 'software demodulation' are from very
  105.        poor up to excellent.
  106.        Generally, you can prevent yourself from lots of frustrations when
  107.        not trying this kind of signal demodulation on a 8088/86 or
  108.        similarly slow computer.
  109.  
  110.  
  111.        
  112.  
  113.  
  114.        A comparator circuit that could be used for software demodulation
  115.        might look like this one:
  116.  
  117.  
  118.                                                              RS232
  119.                                                            (25-pin)
  120.  
  121.                     100 nF         741 o.ä.  1N4148
  122.                                        ┌───────┤─────O RTS      4
  123.                      ││           3 │\ │7
  124.                O─────┤├───█─────────┤+\│
  125.                      ││   │         │  \ 6
  126.             AF in         │         │   >────────────O  DSR      6
  127.                           │       2 │  /
  128.                O───┐      │    ┌────┤-/│
  129.                    │      │    │    │/ │4
  130.                   ─┴─    ┌┴┐   │       └───────├─────O DTR     20
  131.                          │ │  ─┴─            1N4148
  132.                      47k │ │
  133.                          └┬┘
  134.                           │            ┌─────────────O  GND      7
  135.                          ─┴─          ─┴─
  136.  
  137.  
  138.  
  139.        RTS and DTR are programmed to serve as power supply leads for the
  140.        comparator, so that no external power supply is needed.
  141.  
  142.        The 'bits' field can be set to 7 bits, but in some cases better
  143.        results are obtained when reducing this value to 6, or 4.
  144.        The port base address and the IRQ level of the serial port
  145.        must be enterd. Normally, IRQ is 4 for COM1 or COM3, and 3 for COM2
  146.        or COM4.
  147.        The program will not accept IRQ's above 7.
  148.        The data rate and baud rate fields are meaningless.
  149.  
  150.  
  151.        HAMCOMM:
  152.        ========
  153.  
  154.        This is just the same as the comparator interface with the
  155.        difference that the DTR and RTS lines are toggled to serve as a
  156.        transmit/receive switch.
  157.        The HAMCOMM interface is very popular for the reception of RTTY etc.
  158.        in conjunction with the famous HAMCOMM shareware program.
  159.  
  160.  
  161.  
  162.        Parallal port:
  163.        ==============
  164.  
  165.        Data is being read from the specified port address periodically.
  166.        There's no handshake and all the timing is done by the program.
  167.        Despite the fact that this is by far the easiest way of interfacing,
  168.        as seen from the demodulator side, the problem is, that normally
  169.        there's no parallel input port available on PC's. Of course one could
  170.        use the game port or the 'modem status' port of any serial port, but
  171.        these all are only capable to deliver a 4-bit information.
  172.        The optimum solution would be a bidirectional printer port, where the
  173.        8 data lines could be used for input.
  174.        On some computers this is standard. (e.g. on Toshiba laptops, where
  175.        you can enable this option in the setup, or on some IBM-PS/2 models)
  176.        Fortunately, most older printer port cards (equipped with standard TTL
  177.        components) can be modified very easily for data input by simply
  178.        cutting the output enable pin of the data output latch.
  179.        No interrupt from the parallel port in used, so the IRQ-field in the
  180.        configuration screen is meaningless.
  181.        The baud rate field and the data rate field are as well meaningless.
  182.        Standard port addresses for printer ports are 0378h (LPT1:),
  183.        or 0278h (lpt2:).
  184.        If your interface delivers less than 8 data bits, these must be left
  185.        (MSB) aligned. You should set the "bits" field to the number of
  186.        significant bits that your interface can deliver.
  187.  
  188.        In order to make a printer port bidirectional, or to prepare it for
  189.        input, bit 5 of the printer control port is set to high. before
  190.        reading any data from the data port.
  191.        Additionally, to get some IBM PS/2 machines set the printer port for
  192.        bidirectional operation, the follwing operations are performed
  193.        whenever JVFAX initializes:
  194.            
  195.            020h is output to port 94h, then
  196.            bit 7 of port 0102h is reset, then
  197.            0A0h is output to port 94h.
  198.            Alternatively on a IBM Model 30, bit 7 of Port 065h is reset.
  199.  
  200.  
  201.        A&M design board, MEFAX:
  202.        ========================
  203.  
  204.        both are plug in cards which allow for the reception of both AM-
  205.        and FM-FAX signals.
  206.        Not all options of these cards are fully supported by the program,
  207.        especially regarding the A&M-board which allows for a synchroneous
  208.        buffered data acquisition.
  209.  
  210.  
  211.  
  212.        Faxellite:
  213.        ==========
  214.  
  215.        is the interface that SSB-electronics supplies with their excellent
  216.        DIGISAT program.
  217.        I don't know whether they changed their interface design in the
  218.        meantime, so it might be that my program will not work with
  219.        the up-to-date version of this interface.
  220.  
  221.  
  222.        BPF2 (8 bit):
  223.        =============
  224.  
  225.        is to interface to the BPF2 FM demodulator interface offered by
  226.        Ingenieurbüro Becker & Poth (see below)
  227.        
  228.  
  229.        B) synchroneous data acquisition
  230.        ================================
  231.  
  232.        While all the above interfaces leave the complete signal timing up
  233.        to the program's task, the following drivers are to support interfaces
  234.        that can deliver some kind of pixel clock, besides the data itself.
  235.        This gives some advantages when, for example, receiving polar orbiting
  236.        satellites or when replaying tape recordings of such satellite passes.
  237.        All these drivers haven't been tested yet, and I'm not sure if they
  238.        will work at all.
  239.  
  240.  
  241.        SYNCHRON SERIAL:
  242.        ================
  243.  
  244.        works quite the same way as the serial port/ser interfacing with the
  245.        difference that the program timing is derived from the data rate of
  246.        the interface. (not the baud rate!!)
  247.        The correct data rate must be entered in the data rate field of the
  248.        configuration screen. the baud rate must be at least ten times the
  249.        data rate, because for every pixel to be read there are 10 bits to be
  250.        transferred (8 data bits and one stop bit).
  251.        The data rate itself normally is determined by the signal source,
  252.        e.g. 2400 or 4800 pixels/s for polar orbiting satellites.
  253.        Use af an 16550 FIFO UART is strongly recommended.
  254.  
  255.  
  256.        BidPrintPortIRQ:
  257.        ================
  258.  
  259.        same interfacing method as parallel port (see above).
  260.        Will only work on a bidirectional printer port (or a printer port
  261.        modified for data input).
  262.        Additionally, the ACK-line serves as a data strobe signal which must
  263.        be fed with the synchroneous clock delivered from the interface
  264.        (active low).
  265.  
  266.  
  267.        BidPrintPortPoll:
  268.        =================
  269.  
  270.        same interfacing as parallel port.
  271.        You need a parallel printer port that is bidirectional or that has
  272.        been made bidirectional.
  273.  
  274.        To use this option your demodulatormust be capable of buffering at
  275.        least 2 (or better more) complete picture lines.
  276.        Data is read in aperiodically by the program. The program will
  277.        read data from the the data port whenever and as long as the ACK line
  278.        is kept low by the interface.
  279.        For every byte read, a short pulse is generated on the strobe line.
  280.        Because no tests have ever been made with this driver (due to the lack
  281.        of an appropriate interface) I'm in doubt if it will work as it
  282.        should. If anyone would develop an interface that meets these
  283.        specifications and would leave it to me for some tests I would try to
  284.        get the whole thing running.
  285.        This interfacing technique should enable the use of the JVFAX program
  286.        under WINDOWS or OS/2, so it could become more and more interesting in
  287.        the future.
  288.        
  289.  
  290.  
  291.        List of modulator types that can be selected for JVFAX 6.0:
  292.        ===========================================================
  293.  
  294.        In general, every transmission done by JVFAX has a maximum intensity
  295.        resolution of 64 levels (6 bit). When outputting digital intensity
  296.        data via a serial or a parallel port, these bits are right (LSB)
  297.        aligned within the output byte, just in oppposite to the demodulator
  298.        seide, where every data is MSB aligned.
  299.  
  300.        You can use the following 'modulators':
  301.  
  302.  
  303.        Speaker:
  304.        ========
  305.  
  306.        audio is generated through the PC's built in speaker.
  307.        you can use a simple low pass filter to obtain a signal that can be
  308.        fed to your transmitter's microphone input jack:
  309.  
  310.  
  311.  
  312.                     100 nF
  313.           to              220     10k
  314.           speaker    ││  ┌───┐   ┌───┐
  315.                O─────┤├──┤   ├─█─┤   ├─█─────┐
  316.                      ││  └───┘ │ └───┘ │     │ 10k
  317.                                │       │    ┌┴┐      v: depends on your TX's
  318.           (use the lead)       │       │    │ │    ┌───┐input characteristic
  319.        (that gives maximum)    │4n7    │4n7 │ │───┤   ├───O
  320.           (audio output)      ─┴─     ─┴─   │ │    └───┘     to
  321.                               ─┬─     ─┬─   │ │    1k-100k   transmitter
  322.                                │       │    └┬┘    ┌───────O
  323.                O───┐           │       │     │     │   100 nF means .1    µF
  324.                    │           │       │     │     │   4n7    means .0047 µF
  325.              GND  ─┴─         ─┴─     ─┴─   ─┴─   ─┴─
  326.  
  327.  
  328.  
  329.        Serial audio:
  330.        =============
  331.  
  332.        works like the above one, but audio is generated on the TxD line of a
  333.        serial port. You must enter the base assress of your serial port
  334.        into the address field.
  335.        Please notice that only a reduced amount (abt. 13) of intessity levels
  336.        will be generated when using this option, since the baudrate generator
  337.        of the serial port is used to generate the audio frequency.
  338.        The problem is, that the input clock frequency for the baud rate
  339.        generator is only about 115 kHz, which leads to very coarse frequency
  340.        steps being programmable.
  341.        You can use the same low pass filtering as above to connect the TxD
  342.        pin of the serial port to your transmitter's input.
  343.  
  344.        
  345.  
  346.  
  347.        Serial port:
  348.        ============
  349.  
  350.        when having selected this option, no audio is generated by the
  351.        computer. Instead, the digital intensity information is being output
  352.        to the TxD line of the serial port (0 for black, 63 for white, etc.)
  353.        The format 8N1 is used, with the baud rate selected in the baud rate
  354.        field.
  355.        Your modulator must parallelize this information, convert it to an
  356.        analogue signal and feed a voltage controlled audio generator with it.
  357.        An example modulator that works this way is shown in the file
  358.        "MODULAT.GIF"
  359.  
  360.        Output values above 63 indicate a remote control command to a
  361.        demodulator being eventually connected to the same port, with the
  362.        exception of the following:
  363.  
  364.            125:   generate 1100 Hz audio  ;as SSTV sync signal
  365.            126:      "     1200 Hz   "    ;all values are in decimal
  366.            127:      "     1300 Hz   "
  367.  
  368.        The differentiation between 1100,1200 and 1300 Hz is for future
  369.        releases of JVFAX to enable VIS signalling.
  370.        to simplify things, you can generate a 1200 Hz tone whenever values
  371.        greater than 63 and less then 128 are being output.
  372.        If you don't want to transmit in SSTV you can forget about all that
  373.        1200 Hz stuff.
  374.  
  375.  
  376.  
  377.        Parallel port:
  378.        ==============
  379.  
  380.        like above, but data is being output via a parallel port, e.g. a
  381.        printer port.
  382.  
  383.        
  384.  
  385.  
  386.        IBM parallel port 25 pin connector:
  387.        ===================================
  388.  
  389.             /Strobe     1 ───O
  390.              D0         2 ───O  O─── 14       /Auto feed
  391.              D1         3 ───O  O─── 15       /Fault
  392.              D2         4 ───O  O─── 16       /Reset
  393.              D3         5 ───O  O─── 17       /Select in
  394.              D4         6 ───O  O─── 18        GND
  395.              D5         7 ───O  O─── 19        GND
  396.              D6         8 ───O  O─── 20        GND
  397.              D7         9 ───O  O─── 21        GND
  398.             /ACK       10 ───O  O─── 22        GND
  399.              Busy      11 ───O  O─── 23        GND
  400.              PE        12 ───O  O─── 24        GND
  401.              Select    13 ───O  O─── 25        GND
  402.  
  403.        Signals which are preceeded with a "/" are active low.
  404.  
  405.  
  406.        IBM serial port 25 pin connector:
  407.        =================================
  408.  
  409.              Prot.GND   1 ───O
  410.              TXD        2 ───O  O─── 14
  411.              RXD        3 ───O  O─── 15
  412.              RTS        4 ───O  O─── 16
  413.              CTS        5 ───O  O─── 17
  414.              DSR        6 ───O  O─── 18
  415.              GND        7 ───O  O─── 19
  416.              DCD        8 ───O  O─── 20        DTR
  417.                         9 ───O  O─── 21
  418.                        10 ───O  O─── 22        RI
  419.                        11 ───O  O─── 23
  420.                        12 ───O  O─── 24
  421.                        13 ───O  O─── 25
  422.  
  423.  
  424.        IBM serial port 9 pin connector:
  425.        ================================
  426.              DCD        1 ───O
  427.              RXD        2 ───O  O─── 6         DSR
  428.              TXD        3 ───O  O─── 7         RTS
  429.              DTR        4 ───O  O─── 8         CTS
  430.              GND        5 ───O  O─── 9         RI
  431.  
  432.  
  433.        Configuration hints on some demodulators
  434.        ========================================
  435.  
  436.        Here is shown what you should enter in the demodulator/modulator 
  437.        field of the configuration menu when using the following devices:
  438.  
  439.        EASYFAX:
  440.        ========
  441.        
  442.        Demodulator: 8 bits on serial port;      Baud rate 57600
  443.        Modulator:   6 bits on serial port       LSB-SSTV-sync: yes
  444.  
  445.        Do not use the "serial port/ser" option for demodulator. This would
  446.        work too, but using the "serial port" interfacing gives better results.
  447.        Port addresses depend on what serial port your Easyfax is  
  448.        connected to.
  449.        
  450.        HARI-FAX:
  451.        =========
  452.  
  453.        Demodulator: 8 bits on serial port/ser. Baud rate 38400
  454.                                                LSB-SSTV-sync: no
  455.        Modulator:   use Speaker or serial audio with the circuit 
  456.                     described above
  457.        
  458.        Port address for "demodulator" depends on what serial port your 
  459.        HARI-FAX is connected to.
  460.  
  461.        DL5JM demodulator/modulator:
  462.        ============================
  463.        
  464.        Demodulator: 7 bits on serial port      Baud rate 38400
  465.                                                LSB-SSTV-sync: no
  466.        Modulator:   6 bits on serial port 
  467.  
  468.        Port addresses depend on what serial port your demodulator/
  469.        modulator is connected to.
  470.        
  471.        WRAASE MR-9202:
  472.        ===============
  473.        
  474.        Demodulator: 8 bits on serial port;      Baud rate: doesn' matter
  475.                                                 LSB-SSTV-sync: doesn't matter
  476.        
  477.        Modulator:   use Speaker or serial audio with the circuit 
  478.                     described above
  479.  
  480.        Port address for "demodulator" depends on what serial port your 
  481.        WRAASE RECEIVER is connected to.
  482.  
  483.  
  484.        
  485.        
  486.        NSK-demodulator: 
  487.        ================
  488.        
  489.        Demodulator: 7 bits on serial port      Baud rate: doesn't matter
  490.                                                LSB-SSTV-sync: no
  491.        Modulator:   use Speaker or serial audio with the circuit 
  492.                     described above
  493.  
  494.        Port address for "demodulator" depends on what serial port your 
  495.        NSK demodulator is connected to.
  496.  
  497.        BPF2 (8 bit version):
  498.        =====================
  499.        
  500.        Demodulator: 7 bits on BPF 2 (8 bit)    Baud rate 57600
  501.                                                LSB-SSTV-sync: no
  502.        Modulator:   use Speaker or serial audio with the circuit 
  503.                     described above
  504.        
  505.        Port address for "demodulator" depends on what serial port your 
  506.        BPF 2 is connected to. Becker & Poth deliver a "8 bit" version 
  507.        of the BPF 2, specially designed for use with JVFAX. 
  508.        There is a "9 bit" version of the BPF 2, too, which will currently
  509.        not work with JVFAX.
  510.  
  511.  
  512.        
  513.        A short list of (german) demodulator/modulator suppliers known to me:
  514.        =====================================================================
  515.  
  516.  
  517.        This list will certainly be incomplete, and the ordering of the
  518.        addresses will not tell anything about the quality of the interfaces
  519.        being offered.
  520.        All these interfaces should co-operate with JVFAX, but in no case
  521.        I can guarantee for that.
  522.  
  523.  
  524.        PCBs and kits from DL5JM:
  525.        Achim Kündahl, DL5JM in Wetter, has PCBs and kits for both a 16 grey
  526.        scale FM and a 64 grey scale AM/FM interface as well as for a
  527.        modulator circuit.
  528.        His address:
  529.  
  530.          Achim Kündahl
  531.          DL5JM
  532.          Grünewalder Str. 21
  533.  
  534.          58300 Wetter
  535.          Tel.: 02335/60572
  536.  
  537.  
  538.  
  539.        "Easyfax" kit from  Ulrich Bangert, DF6JB:
  540.        Ulrich developed a superb µP-based transmit/recieve interface that is
  541.        easy to assemble and that needs absolutely no alignment. It can handle
  542.        up to 256 intensity levels, AM and FM FAX as well as SSTV.
  543.        The interface is offered as a complete kit including a preassembled
  544.        case and can be easily updated by EPROM exchange.
  545.        Ulrichs address:
  546.  
  547.          Ulrich Bangert
  548.          DF6JB
  549.          Weddigenstr. 28
  550.  
  551.          42389 Wuppertal
  552.          Tel.: 0202/602537
  553.  
  554.  
  555.  
  556.        "MMI" by C-Data:
  557.        This interface should co-operate with JVFAX, too.
  558.        However, C-data offers a FAX program of their own for this interface.
  559.        Address:
  560.  
  561.          C-Data
  562.          Hohenwarter Str. 6
  563.  
  564.          85276 Pfaffenhofen
  565.          Tel.: 08441/6145
  566.  
  567.  
  568.        
  569.  
  570.  
  571.        "DK8JV-FAX-Konverter" by NSK:
  572.        A 64 grey scale demodulator for AM and FM FAX
  573.        Address:
  574.  
  575.          Ingenieurbüro für Satellitentechnik
  576.          Dipl.-Ing. B. Ewert
  577.          Mühlenweg 11
  578.  
  579.          24217 Stakendorf
  580.          Tel.: 04344/6758
  581.  
  582.  
  583.  
  584.        "Meteosat-Empfangs-Set"
  585.        Complete rig for the reception of geostationary weather satellites
  586.        such as Meteosat, including receiver, antenna and interface.
  587.        Available from
  588.  
  589.          Fa. Bogerfunk
  590.          Funkanlagen GmbH
  591.          Grundesch 15
  592.  
  593.          88326 Aulendorf
  594.          Tel.: 07525/451
  595.  
  596.  
  597.  
  598.        "WX-Satelliten-Empfänger MR-9202"
  599.        A 137-Mhz receiver for polar orbiting satellites with a built-in
  600.        interface.
  601.        Available from:
  602.  
  603.          Volker Wraase Elektronik
  604.          Kronsberg 10
  605.  
  606.          24161 Altenholz
  607.          Tel.: 0431/32528
  608.  
  609.  
  610.        "BPF 2"
  611.        A µC controlled subminiature FM demodulator is supplied by
  612.  
  613.          Ingenieurbüro Becker & Poth GmbH
  614.          Düsselthaler Str. 49
  615.  
  616.          40211 Düsseldorf
  617.          Tel: 0211/9061340
  618.  
  619.  
  620.        "HARI-FAX"
  621.        A µC controlled AM/FM fax demodulator that can deliver up to 256
  622.        intensity levels. Available as kit or as assembled board.
  623.  
  624.          Fa. Siegfried Hari
  625.          Spessartstr. 80
  626.  
  627.          63448 Seligenstadt
  628.  
  629.  
  630.        Both the Easyfax and the Hari-Fax interface support remote control
  631.        of the interface by the JVFAX program.
  632.